package com.servlet;

import com.bean.Bhcase;
import com.dao.BhcaseDao;
import com.dao.impl.BhcaseDaoImpl;
import com.util.Timeone;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

@WebServlet("/kaoqian/*")
public class ExfuyeServlet extends BaseServlet {
        protected void uo(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            List<Bhcase> list=( List<Bhcase>)request.getAttribute("list");
            request.setAttribute("Tim", Timeone.ka(list.get(0).getcBegin(),list.get(0).getcEnd()));
            request.setAttribute("pan",list);
            request.getRequestDispatcher("/WEB-INF/jsp/Examinationta.jsp").forward(request,response);
        }
}
